<template>
  <div class="right1">
    <div class="title">
      <span class="word">个性配置</span>
    </div>
    <div class="line"></div>
    <div class="middle">
      <div class="midTop">
        <div>平台名称</div>
        <el-button @click="Cname">修改</el-button>
      </div>
      <div class="tit">
        <span>中文:</span>
        <span v-if="Pname==false">OAO线上+线下智慧陪伴式运维</span>
        <el-input v-if="Pname==true"></el-input>
      </div>
      <div class="tit">
        <span>英文:</span>
        <span v-if="Pname==false">Online and Offline Accompanying Smart Operation</span>
        <el-input v-if="Pname==true"></el-input>
      </div>
      <div class="line2"></div>
    </div>
    <div class="middle">
      <div>
        <span>平台色系选择</span>
      </div>
      <div class="color">
        <el-radio-group v-model="radio1" class="ml-4">
          <el-radio label="1" size="large">
            <ul>
              <li>
                <span>基调色</span>
                <p class="p1"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p2"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p3"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p4"></p>
              </li>
            </ul>
          </el-radio>
          <el-radio label="2" size="large">
            <ul>
              <li>
                <span>基调色</span>
                <p class="p1"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p2"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p3"></p>
              </li>
              <li>
                <span>基调色</span>
                <p class="p4"></p>
              </li>
            </ul>
          </el-radio>
        </el-radio-group>
      </div>
      <div class="line2"></div>
      <div class="bottom">
        <div class="midTop">
          <div>平台文件交互</div>
          <el-button @click="change">修改</el-button>
        </div>
        <div>
          <div>
            <span>系统简介</span>
            <div class="titcont">
              <div class="contentTit">
                <span>文件：系统简介.DOC</span>
                <div class="btn" v-if="mod==false">
                  <el-button type="text">预览</el-button>
                  <el-button type="text">下载</el-button>
                </div>
                <div class="btn" v-if="mod==true">
                  <el-button type="text">删除</el-button>
                  <el-button type="text">上传</el-button>
                </div>
              </div>
              <div class="box">
                <div class="leave">
                  <span>请问请问请问请问请问请问请问</span>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="box2">
          <div>
            <span>使用说明</span>
            <div class="titcont">
              <div class="contentTit">
                <span>文件：使用说明.DOC</span>
                <div class="btn" v-if="mod==false">
                  <el-button type="text">预览</el-button>
                  <el-button type="text">下载</el-button>
                </div>
                <div class="btn" v-if="mod==true">
                  <el-button type="text">删除</el-button>
                  <el-button type="text">上传</el-button>
                </div>
              </div>
              <div class="box">
                <div class="leave">
                  <span>57676gyhbhbjhbhjbhbhbhjbhbhjbjhbhbj</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import {ref} from "vue"
let mod=ref(false)
let Pname=ref(false)
const Cname=()=>{
  Pname.value=!Pname.value
}
const change=()=>{
  mod.value=!mod.value
}
</script>

<style scoped lang="less">
.tit .el-input{
  width: 379px;
}
ul {
  list-style: none;
  float: left;
  margin-left: 10px;
  li {
    float: left;
    margin-right: 20px;
    font-family: SourceHanSansSC;
    font-weight: 400;
    font-size: 12px;
    color: rgb(127, 127, 127);
    font-style: normal;
    letter-spacing: 0px;
    line-height: 22px;
    text-decoration: none;
    .p1 {
      border-radius: 4px;
      width: 39px;
      background-color: rgb(81, 99, 167);
      height: 20px;
    }
    .p2 {
      width: 39px;
      border-radius: 4px;
      background-color: rgb(240, 149, 61);
      height: 20px;
    }
    .p3 {
      width: 39px;
      border-radius: 4px;
      background-color: rgb(147, 170, 222);
      height: 20px;
    }
    .p4 {
      width: 39px;
      border-radius: 4px;
      background-color: rgb(235, 242, 250);
      height: 20px;
    }
  }
}
.color {
  margin-top: 30px;
}
.right1 {
  width: 100%;
  height: 100%;
  background-color: white;
  border-style: none;
  border-color: unset;
  box-shadow: rgb(77 98 165 / 10%) 0px 5px 20px 0px;
  border-radius: 8px;
  font-size: 14px;
  padding: 0px;
  line-height: 20px;
  font-weight: normal;
  font-style: normal;
  .title {
    padding: 20px;
    .word {
      font-family: SourceHanSansSC;
      font-weight: 550;
      font-size: 20px;
      color: rgb(77, 98, 165);
      font-style: normal;
      letter-spacing: 2px;
      line-height: 28px;
      text-decoration: none;
    }
  }
  .line {
    border-bottom: 2px rgba(77, 98, 165, 0.2) solid;
  }

  .middle {
    font-family: SourceHanSansSC;
    font-weight: 400;
    font-size: 16px;
    color: rgb(127, 127, 127);
    font-style: normal;
    letter-spacing: 0px;
    line-height: 22px;
    text-decoration: none;
    padding: 20px;
    width: 100%;
    .midTop {
      display: flex;
      justify-content: space-between;
      margin-bottom: 28px;
      .el-button {
        width: 104px;
        height: 30px;
        z-index: 698;
        background-color: rgb(147, 170, 222);
        color: white;
      }
    }
    .line2 {
      width: 100%;
      padding-left: 40px;
      padding-right: 40px;
      border-bottom: dashed rgb(220, 224, 238) 1px;
      height: 1px;
      margin: auto;
      margin: 36px 0px 20px 0px;
    }
    .tit {
      // margin-top: 28px;
      font-family: SourceHanSansSC;
      font-weight: 550;
      font-size: 14px;
      color: rgb(127, 127, 127);
      font-style: normal;
      letter-spacing: 0px;
      line-height: 32px;
      text-decoration: none;
    }
  }
  .middle {
    font-family: SourceHanSansSC;
    font-weight: 400;
    font-size: 16px;
    color: rgb(127, 127, 127);
    font-style: normal;
    letter-spacing: 0px;
    line-height: 22px;
    text-decoration: none;
    padding: 20px;
  }
  .bottom {
    // background-color: thistle;
    margin-top: 30px;
    .contentTit {
      display: flex;
      .btn {
        margin-left: 60px;
        .el-button {
          padding-bottom: 20px;
        }
      }
    }
    .box {
      height: 83px;
      border: 1px solid rgb(204, 204, 204);
      border-radius: 3px;
    }
    .box2 {
      margin-top: 20px;
    }
    .titcont {
      margin-top: 10px;
    }
    .leave {
      padding: 10px;
      span {
        font-family: SourceHanSansSC;
        font-weight: 400;
        font-size: 14px;
        color: rgb(126, 126, 126);
        font-style: normal;
        letter-spacing: 0px;
        line-height: 20px;
        text-decoration: none;
      }
    }
  }
}
// /deep/.el-button>span {
//     color: white;
//     display: inline-flex;
//     align-items: center;
// }
</style>
